package com.patterns.mediator.commonMediator;

/**
 * Created by Xiao Yiyun on 2017/4/30.
 * 通用中介者类
 */
public class ConcreteMediator extends Mediator {
    public void dosth1() {
        //调用同事类的方法，只要是public方法都可以调用
        super.c1.selfMethod1();
        super.c2.selfMethod2();
    }

    public void dosth2() {
        super.c1.selfMethod1();
        super.c2.selfMethod2();
    }
}
